import request from '@/utils/request'

// 查询资金占用信息列表
export function listFundOccupation(query) {
  return request({
    url: '/supply/fundOccupation/list',
    method: 'get',
    params: query
  })
}

// 查询资金占用信息详细
export function getFundOccupation(id) {
  return request({
    url: '/supply/fundOccupation/' + id,
    method: 'get'
  })
}

// 新增资金占用信息
export function addFundOccupation(data) {
  return request({
    url: '/supply/fundOccupation',
    method: 'post',
    data: data
  })
}

// 修改资金占用信息
export function updateFundOccupation(data) {
  return request({
    url: '/supply/fundOccupation',
    method: 'put',
    data: data
  })
}

// 删除资金占用信息
export function delFundOccupation(id) {
  return request({
    url: '/supply/fundOccupation/' + id,
    method: 'delete'
  })
}
